package cn.wolfcode.shop.api.query;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Setter@Getter
public class QueryObject implements Serializable{

    private int currentPage = 1;
    private int pageSize = 5;

    public int getStart(){
        return (currentPage - 1) * pageSize;
    }


}
